.info-panel
  .author
    = image_tag document.user.avatar.url(:small)
  .additional
    .name= link_to "#{document.user.full_name}", "#"
    .date= l document.created_at
  .tags
    - links_for_tags(document.tags) do |tag|
      = tag
.rating
  %span Рейтинг:
  = html_tag_for_rating document
  - if can?(:rating) && document.user != current_user  # TODO
    = link_for_change_rating(document, :down)
    = link_for_change_rating(document, :up)
